package com.sdppf.service.impl;

import java.util.List;

import com.sdppf.dao.RoleDao;
import com.sdppf.domain.Role;
import com.sdppf.service.RoleService;

public class RoleServiceImpl implements RoleService {

	private RoleDao roleDao;

	public RoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public void deleteRole(Role role) {
		this.roleDao.deleteRole(role);
	}

	@Override
	public Role queryRole(int roleId) {
		return this.queryRole(roleId);
	}

	@Override
	public List<Role> queryRoles() {
		return this.roleDao.queryRoles();
	}

	@Override
	public void saveRole(Role role) {
		this.roleDao.saveRole(role);
	}

	@Override
	public void updateRole(Role role) {
		this.roleDao.updateRole(role);
	}
}
